import "./assets/main.css";

import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "element-plus/dist/index.css";
import router from "@/router";
import { createPinia } from "pinia";
import { createPersistedState } from "pinia-persistedstate-plugin";
import locale from "element-plus/dist/locale/zh-cn.js";
import { store } from "@/stores/store";
// import '@/assets/styles/index.scss'
import "@/assets/styles/ruoyi.scss";

const pinia = createPinia();
const persist = createPersistedState();
const app = createApp(App);

import { QuillEditor } from "@vueup/vue-quill";
// import '@vueup/vue-quill/dist/';
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(store)
app.use(ElementPlus, { locale });
app.use(router);
app.use(pinia);
app.component("QuillEditor", QuillEditor);
pinia.use(persist);
app.mount("#app");
